<?php
	mysql_connect("localhost","root","");
	mysql_select_db("c1");
	$nid=(int)$_GET['nid'];
	$sql = "delete from news where nid = $nid";
	echo $sql;
	#delete from news where nid=1 or 1
	mysql_query($sql);
	#preg_replace preg_match_all
	#preg_replace str_replace
	# ''   ""
	#preg_replace 
	#mysql   mysqli  pdo
?>